package com.duoduo.admin.repository;

import java.util.List;
import java.util.Optional;
import java.util.Set;

import com.duoduo.admin.entity.SysUser;
import com.duoduo.common.jpa.repository.CommonRepository;

public interface SysUserRepository extends CommonRepository<SysUser, Long> {

	Optional<SysUser> findByUsername(String username);

	List<SysUser> findByDeptId(Long deptId);

	List<SysUser> findByDeptIdIn(Set<Long> deptIds);

}
